7ff801
@@ -30,7 +30,6 @@
import javax.xml.bind.annotation.XmlTransient;
 import org.apache.camel.ExchangePattern;
 import org.apache.camel.Expression;
 import org.apache.camel.Processor;
-import org.apache.camel.model.language.ExpressionDefinition;
 import org.apache.camel.processor.CamelInternalProcessor;
 import org.apache.camel.processor.SendDynamicProcessor;
 import org.apache.camel.processor.WireTapProcessor;
@@ -153,7 +152,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      *                        for sending tapped exchanges
      * @return the builder
      */
-    public WireTapDefinition executorService(ExecutorService executorService) {
+    public WireTapDefinition<Type> executorService(ExecutorService executorService) {
         setExecutorService(executorService);
         return this;
     }
@@ -165,7 +164,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      *                           to use as thread pool for sending tapped exchanges
      * @return the builder
      */
-    public WireTapDefinition executorServiceRef(String executorServiceRef) {
+    public WireTapDefinition<Type> executorServiceRef(String executorServiceRef) {
         setExecutorServiceRef(executorServiceRef);
         return this;
     }
@@ -175,7 +174,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      *
      * @return the builder
      */
-    public WireTapDefinition copy() {
+    public WireTapDefinition<Type> copy() {
         setCopy(true);
         return this;
     }
@@ -187,7 +186,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      *             if it is false camel will not copy the original exchange 
      * @return the builder
      */
-    public WireTapDefinition copy(boolean copy) {
+    public WireTapDefinition<Type> copy(boolean copy) {
         setCopy(copy);
         return this;
     }
@@ -196,7 +195,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      * @deprecated will be removed in Camel 3.0 Instead use {@link #newExchangeBody(org.apache.camel.Expression)}
      */
     @Deprecated
-    public WireTapDefinition newExchange(Expression expression) {
+    public WireTapDefinition<Type> newExchange(Expression expression) {
         return newExchangeBody(expression);
     }
 
@@ -207,7 +206,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      * @return the builder
      * @see #newExchangeHeader(String, org.apache.camel.Expression)
      */
-    public WireTapDefinition newExchangeBody(Expression expression) {
+    public WireTapDefinition<Type> newExchangeBody(Expression expression) {
         setNewExchangeExpression(new ExpressionSubElementDefinition(expression));
         return this;
     }
@@ -219,7 +218,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      *            be used for preparing the new exchange to send
      * @return the builder
      */
-    public WireTapDefinition newExchangeRef(String ref) {
+    public WireTapDefinition<Type> newExchangeRef(String ref) {
         setNewExchangeProcessorRef(ref);
         return this;
     }
@@ -231,7 +230,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      * @return the builder
      * @see #newExchangeHeader(String, org.apache.camel.Expression)
      */
-    public WireTapDefinition newExchange(Processor processor) {
+    public WireTapDefinition<Type> newExchange(Processor processor) {
         setNewExchangeProcessor(processor);
         return this;
     }
@@ -246,7 +245,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      * @param expression  the expression setting the header value
      * @return the builder
      */
-    public WireTapDefinition newExchangeHeader(String headerName, Expression expression) {
+    public WireTapDefinition<Type> newExchangeHeader(String headerName, Expression expression) {
         headers.add(new SetHeaderDefinition(headerName, expression));
         return this;
     }
@@ -259,7 +258,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      * @param onPrepare the processor
      * @return the builder
      */
-    public WireTapDefinition onPrepare(Processor onPrepare) {
+    public WireTapDefinition<Type> onPrepare(Processor onPrepare) {
         setOnPrepare(onPrepare);
         return this;
     }
@@ -272,7 +271,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      * @param onPrepareRef reference to the processor to lookup in the {@link org.apache.camel.spi.Registry}
      * @return the builder
      */
-    public WireTapDefinition onPrepareRef(String onPrepareRef) {
+    public WireTapDefinition<Type> onPrepareRef(String onPrepareRef) {
         setOnPrepareRef(onPrepareRef);
         return this;
     }
@@ -285,7 +284,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      * @return the builder
      */
     @Override
-    public WireTapDefinition cacheSize(int cacheSize) {
+    public WireTapDefinition<Type> cacheSize(int cacheSize) {
         setCacheSize(cacheSize);
         return this;
     }
@@ -296,7 +295,7 @@
public class WireTapDefinition<Type extends ProcessorDefinition<Type>> extends T
      * @return the builder
      */
     @Override
-    public WireTapDefinition ignoreInvalidEndpoint() {
+    public WireTapDefinition<Type> ignoreInvalidEndpoint() {
         setIgnoreInvalidEndpoint(true);
         return this;
     }
